package demo.practice.noip;

public class Pc1 {


    //

    public static void main(String[] args) {
        Pc1 pc1= new Pc1();
        System.out.println(pc1.getCoins(10));
    }
    //1,2,2,3,3,3
    public  int getCoins(int days){
        int count=1;
        int j=0;
        int sum=0;
        for( int i=0;i<days;i++){
            if(j<count){
                sum+=count;
                j++;
            }else{
                count++;
                sum+=count;
                j=1;
            }
            System.out.print(count);
        }
        System.out.println("");
        return sum;
    }
}
